package com.pb.wkflow.core.utils;

import java.util.List;

/**
 * @author 苗益辉
 * @date 2022/4/9 12:56
 */
public class ArrayUtils {

    private ArrayUtils() {

    }

    public static <T> boolean isEmpty(List<T> list) {
        if(null == list) {
            return true;
        }
        for(T s : list) {
            //s为空或者为空字符串
            boolean flag = null == s || (s instanceof String && "".equals(s.toString().trim()));
            if(flag) {
                continue;
            }
            return false;
        }
        return true;
    }
}
